﻿@model HRM.Models.dk_GiangDayNgoaiTruong

@{
    ViewBag.Title = "Create";
}

<h2>Tạo mới Giảng dạy ngoài trường đợt : @Session["storeid"]</h2>
<link href="../../Content/style.css" rel="stylesheet" type="text/css" />
@using (Html.BeginForm("Create","DangKy_GiangDayNgoaiTruong")) {
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>dk_GiangDayNgoaiTruong</legend>
        <div class="datagrid">
                 <table >
                 @Html.TextBoxFor(model => model.TenNV, new { @Value=@User.Identity.Name,@style="display:none"})
                 @Html.TextBoxFor(model => model.MaDDKy, new { @Value = @Session["storeid"], @style = "display:none" })
                  <thead>
                    <tr>
                        <th colspan="5">Nơi làm việc</th>
                        <th colspan="2">Số giờ/tuần</th>
                    </tr>
                  </thead>
                  <tbody>
                    <tr class="alt">
                        <td colspan="5">@Html.TextBoxFor(model => model.noilamviec1, new { @class = "altfield" })</td>
                        <td colspan="2">@Html.TextBoxFor(model => model.sogio1, new { @class = "altfield" })</td>
                    </tr>
                    <tr>
                        <td colspan="5">@Html.TextBoxFor(model => model.noilamviec2, new { @class = "textfield" })</td>
                        <td colspan="2">@Html.TextBoxFor(model => model.sogio2, new { @class = "textfield" })</td>
                    </tr>
                    <tr class="alt">
                        <td colspan="5">@Html.TextBoxFor(model => model.noilamviec3, new { @class = "altfield" })</td>
                        <td colspan="2">@Html.TextBoxFor(model => model.sogio3, new { @class = "altfield" })</td>
                    </tr>
                     <tr>
                        <td colspan="5">@Html.TextBoxFor(model => model.noilamviec4, new { @class = "textfield" })</td>
                        <td colspan="2">@Html.TextBoxFor(model => model.sogio4, new { @class = "textfield" })</td>
                    </tr>
                    <tr class="alt">
                        <td colspan="5">@Html.TextBoxFor(model => model.noilamviec5, new { @class = "altfield" })</td>
                        <td colspan="2">@Html.TextBoxFor(model => model.sogio5, new { @class = "altfield" })</td>
                    </tr>
                </tbody>
             </table>
        </div>
        
            <div class="editor-label">
                @Html.TextBoxFor(model => model.TenNV, new { @Value = @User.Identity.Name, @style = "display:none" })
            </div>
       
            <div class="editor-field">
                @Html.TextBoxFor(model => model.MaDDKy, new { @Value = @Session["storeid"], @style = "display:none" })
            </div>

        <p>
            <input type="submit" value="Lưu" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Quay lại", "Index")
</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
